package com.qf.springcloud.order.feign;

import com.qf.springcloud.order.pojo.OrderItem;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.*;

@FeignClient("24itemprovider-streamsleuth")
@RequestMapping("/items")
public interface ItemFeignClient {

    @GetMapping("/item/{id}")
    OrderItem getItemById(@PathVariable Integer id);

    @GetMapping("/item/test1")
    String test1(@RequestParam String username, @RequestParam int age);

    @PostMapping("/item/item")
    OrderItem test2(@RequestBody OrderItem item);
}
